import java.util.Arrays;

/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: ${USER}
 * Date: ${YEAR}-${MONTH}-${DAY}
 * Time: ${TIME}
 */
public class Main {
    public static void main(String[] args) {
        Test test = new Test();
        int[] array = new int[]{12,11,1,23,45,65,32,15};
        test.createHeap(array);
        test.heapSort(array);
        System.out.println(Arrays.toString(array));
    }
}